package com.youlai.boot.modules.collect.converter;

import org.mapstruct.Mapper;
import com.youlai.boot.modules.collect.model.entity.Collect;
import com.youlai.boot.modules.collect.model.form.CollectForm;
import com.youlai.boot.modules.collect.model.vo.CollectVO;

/**
 * 用户收藏对象转换器
 *
 * @author maoyu
 * @since 2025-02-27 10:29
 */
@Mapper(componentModel = "spring")
public interface CollectConverter{

    CollectForm toForm(Collect entity);

    Collect toEntity(CollectForm formData);

    CollectVO toCollectVO(Collect entity);
}